import http from "./http";
const carousels =(pageNumber,pageSize)=>{
    return http.get("/carousels",{
        params:{
            pageNumber,
            pageSize
        }
    })
};
const carouselsInfo =(id)=>{
    return http.get(`/carousels/${id}`)
};
const addCarousel =(data)=>{
    return http.post("/carousels",data)
}
const updateCarousel =(data)=>{
    return http.put("/carousels/",data)
}
const deleteCarousel =(id)=>{
    return http.delete("/carousels/",id)
}
const  getUsers=(pageNumber,pageSize)=> {
 return   http.get('/users',{
    params:{
        pageNumber,
        pageSize
    }
 })
}
export default {
    carousels,
    carouselsInfo,
    addCarousel,
    updateCarousel,
    deleteCarousel,
    getUsers,
}
